#include<iostream>
#include<vector>
#include<string>
using namespace std;
const int N = 110;
string s[N];
vector<int>ans;
int n;
bool check(string s1)
{
	for (int i = 0; i < s1.size() / 2; i++) {
		if (s1[i] != s1[s1.size() - i - 1])return 0;
	}
	return 1;
}
int main()
{
	cin >> n;
	for (int i = 0; i < n; i++) {
		cin >> s[i];
	}
	for (int i = 0; i < n - 1; i++) {
		for (int j = i + 1; j < n; j++) {
			string t = s[i] + s[j];
			string k = s[j] + s[i];
			if (check(t)||check(k)) {
				cout << "Yes" << endl;
				return 0;
			}
		}
	}
	cout << "No" << endl;
	return 0;
}